package com.example.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.Community;
import com.example.domain.Life;
import com.example.mapper.LifeMapper;
import com.example.service.LifeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LifeServiceImpl extends ServiceImpl<LifeMapper, Life> implements LifeService {
    @Autowired
    private LifeMapper lifeMapper;
    @Override
    public IPage<Life> getPageLife(Integer page, Integer size) {
        IPage<Life> pageInfo=new Page<>(page,size);
        lifeMapper.selectPage(pageInfo,null);
        return pageInfo;
    }
}
